package com.xaicode.auth.security.domain.params;

import com.xaicode.auth.domain.params.PageVo;
import com.xaicode.auth.entity.SysUser;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class SysUserQueryParam extends PageVo {

    /**
     * eq {@link SysUser#getMobile()}
     */
    private String mobile;

    /**
     * eq {@link SysUser#getDeptId()}
     */
    private Integer deptId;

    /**
     * like {@link SysUser#getUsername()}
     */
    private String username;

    /**
     * like {@link SysUser#getNickname()}
     */
    private String nickname;

    /**
     * between {@link SysUser#getLastActiveTime()}
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private List<LocalDateTime> lastActiveTime;

}
